<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		<span aria-hidden="true">&times;</span>
	</button>
	<h5 class="modal-title" id="addModalLabel">添加</h5>
</div>
<form id="addForm" role="form" class="form-horizontal parsley-form" data-parsley-validate action="${base}/platform/student/recordAddDo" method="post">
	<input type="hidden" name="student_id" value="${obj.id}"/>
	<div class="modal-body">
		<div class="row mb10">
			<div class="col-lg-12">
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">姓名</label>
					<div class="col-sm-3">
						<input type="text" id="name" class="form-control" readonly="readonly" value="${obj.name}">
					</div>
					
					<label for="mobile" class="col-sm-2 control-label">电话</label>
					<div class="col-sm-3">
						<input type="text" id="mobile" class="form-control" readonly="readonly" value="${obj.mobile}">
					</div>
				</div>
				<div class="form-group">
					<label for="remark" class="col-sm-2 control-label">备注</label>

					<div class="col-sm-8">
						<textarea rows="5" cols="5" id="remark" class="form-control" name="remark" required="required" data-parsley-maxlength="5000" placeholder="备注"></textarea>
					</div>
				</div>
				<div class="form-group">
                 	<label for="createAt" class="col-sm-2 control-label">回访时间</label>
               		<div class="col-sm-8">
	               		<input type="text" class="form-control" id="createAt1" name="createAtStr" value="" />
	              	</div>
             	</div>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button  class="btn btn-default btn-sm btn-parsley" >完成</button> 
	</div>
</form>
<script language="JavaScript">
   $(document).ready(function () {
	   	$.datetimepicker.setLocale('ch');
	   	$('#createAt1').datetimepicker({
        	lang:'ch',
           	format:'Y-m-d H:i:s'
       	});
    	var dialog=$("#recordAddModal");
		$("#recordAddModalDialog").draggable();
        $('#addForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
            },
            success: function (data, statusText, xhr, form) {
                if (data.code==0) {
                    Toast.success(data.msg);
                    datatable.ajax.reload();
                    dialog.modal("hide");
                } else {
                	Toast.error(data.msg);
                    datatable.ajax.reload();
                    dialog.modal("hide");
                }
            }
        });
    }); 
</script>
